home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3234 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: ix.netcom.com!netnews
  2. From: n4jvp@ix.netcom.com (n4jvp)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Checking to See if a File Exists
  5. Date: Sat, 27 Jan 1996 04:33:10 GMT
  6. Organization: Netcom
  7. Message-ID: <3109a461.960289@ixnews1.ix.netcom.com>
  8. References: <DLtI7G.HpE@midway.uchicago.edu>
  9. NNTP-Posting-Host: ix-nas-nh1-17.ix.netcom.com
  10. X-NETCOM-Date: Fri Jan 26  8:35:29 PM PST 1996
  11. X-Newsreader: Forte Agent .99f/32.101
  12.  
  13. On Sat, 27 Jan 1996 02:14:04 GMT, jaj3@kimbark.uchicago.edu (josef
  14. jurek) wrote:
  15.  
  16. >
  17. >How does one check from a C program to see whether a file
  18. >exists or not?
  19. >
  20. >Thank you,
  21. >
  22. > --
  23. >
  24. >josef jurek
  25. >jaj3@kimbark.uchicago.edu
  26. >
  27.  
  28. Hi Josef
  29.     One version of the code required to check for the existence of
  30. a file using C can be found in a file called Snippets. The actual name
  31. of the file is snipXXXX.zip where the Xs represent the year and month
  32. that the file was last updated. Snippets consists of various snippets
  33. of C code that are within the public domain.
  34.     The latest update that I have seen is snip9510.zip and that
  35. file can be found at numerous ftp sites. Go to the URL
  36.     http://ftpsearch.unit.no/ftpsearch
  37. and run a search for snip9510.zip and you will receive a good sized
  38. listing of ftp sites where the file can be found. You might want to
  39. bookmark that URL as it is a very handy search engine.
  40.  
  41.  
  42.